<?php

ob_start();
session_start();
if (isset($_SESSION['username']) && isset($_SESSION['password'])) {
    $now = time();
    if ($now > $_SESSION['expire']) {
        session_unset();
        header('Location: ../../index.php');
    }
} else {
    header('Location: ../../index.php');
}
?>
